<%@ page import="java.util.List" %>
<%@ page import="cn.com.entity.VipType" %><%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2020/11/11
  Time: 19:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>取消管理员</title>
    <style type="text/css" rel="stylesheet">
        body{
            font-family: "楷体";
            font-size: 16px;
        }
        .all{
            width: 850px;
            max-height: 550px;
            overflow: auto;
            border: 2px solid red;
            margin: 0 auto;
            padding: 50px 30px;
            box-sizing: border-box;
            margin-top: 25px;
        }
        .yheader{
            font-size: 18px;
            font-weight: 600;
            color: red;
            margin-bottom: 10px;
        }
        .list{
            width: 600px;
            margin: 0 auto;
            border: 2px solid #a39933;
            padding: 5px;
            box-sizing: border-box;
            margin-bottom: 10px;
        }
    </style>
    <script src="/WebContent/JQuery/jquery-3.4.1.js" type="text/javascript"></script>
</head>
<body>
<article class="all">
    <div class="yheader">当前位置&nbsp;&gt;&gt;&nbsp;查看所有类型</div>
    <%
        Object alltypes = request.getAttribute("alltypes");
        if(alltypes == null){
    %>
    <p>没有查到数据</p>
    <%
        }else{
            List<VipType> list = (List)alltypes;
            VipType vipType = null;                    //声明对象
            for (int i = 0; i < list.size() ; i++) {
                vipType = list.get(i);
    %>
         <div class="list">
             <div class="vipname">会员名称：<%=vipType.getVipTypeName()%></div>
             <div class="viptime">会员时长：<%=vipType.getVipTypeTime()%></div>
             <div class="vipprice">会员价格：<%=vipType.getVipTypePrice()%></div>
             <div class="viptime">会员介绍：<%=vipType.getVipTypeComment()%></div>
         </div>
    <%
            }
        }
    %>

</article>
<script>
    $(document).ready(function () {

    })
</script>
</body>
</html>
